package edu.spec.wyn.week07.home;

public class Human {
    public String area;        // 地区
    public String mainFood;    // 主食
    public String skinColor;   // 肤色
    // TODO 给language赋初值“人话”
    public static String language="人话";    // 语言

    // TODO 默认构造方法，方法里实现输出打印“我是人类”
    public Human(){
        System.out.println("我是人类");
    }

    // TODO 自定义构造方法，参数对应4个成员变量的值，方法体完成4个成员变量的初始化
    public  Human(String area,String mainFood,String skinColor,String language){
        this.area=area;
        this.mainFood=mainFood;
        this.skinColor=skinColor;
        this.language=language;
    }
    //speak方法
    public void speak(){
        System.out.println("我说"+language);
    }
    // TODO 4个成员属性的getter和setter
    public String getArea(){
        return area;
    }
    public void setArea(){
        this.area=area;
    }
    public String getMainFood(){
        return mainFood;
    }
    public void setMainFood(){
        this.mainFood=mainFood;
    }
    public String getSkinColor(){
        return skinColor;
    }
    public void setSkinColor(){
        this.skinColor=skinColor;
    }
    public void getLanguage(){
        System.out.println(language);
    }
    public void setLanguage(){
        this.language=language;
    }
}
